/**
 * Created by hxpeng on 2017/3/24.
 */

(function () {
    'use strict';

    angular.module('App.pages.class.msg')
        .service('MsgModel', MsgModel);

    function MsgModel(API,$resource) {
        this.actions = {}
        this.actions.createNewMsg = {
            method: 'POST',
            url: API + '/msg/createNewMsg'
        }

        this.actions.findMsgPage = {
            method: 'POST',
            url: API + '/msg/findMsgPageInfo'
        }
        return $resource.call(this, this.url, this.params, this.actions)
    }
})();